PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Geometric / Gears / martin - open machinery hazard.milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=3 |
| 3 | PSVERSION_WARP=3 |
| 4 | PSVERSION_COMP=3 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.980 |
| 8 | fDecay=0.500 |
| 9 | fVideoEchoZoom=1.000 |
| 10 | fVideoEchoAlpha=0.500 |
| 11 | nVideoEchoOrientation=3 |
| 12 | nWaveMode=4 |
| 13 | bAdditiveWaves=1 |
| 14 | bWaveDots=0 |
| 15 | bWaveThick=1 |
| 16 | bModWaveAlphaByVolume=1 |
| 17 | bMaximizeWaveColor=0 |
| 18 | bTexWrap=1 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=0 |
| 22 | bDarken=1 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=0.001 |
| 26 | fWaveScale=0.527 |
| 27 | fWaveSmoothing=0.450 |
| 28 | fWaveParam=0.000 |
| 29 | fModWaveAlphaStart=0.000 |
| 30 | fModWaveAlphaEnd=1.320 |
| 31 | fWarpAnimSpeed=1.459 |
| 32 | fWarpScale=2.007 |
| 33 | fZoomExponent=1.00000 |
| 34 | fShader=0.000 |
| 35 | zoom=0.99990 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00000 |
| 40 | dy=0.00000 |
| 41 | warp=0.01000 |
| 42 | sx=0.99990 |
| 43 | sy=1.00000 |
| 44 | wave_r=0.800 |
| 45 | wave_g=0.490 |
| 46 | wave_b=1.000 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.500 |
| 49 | ob_size=0.000 |
| 50 | ob_r=0.000 |
| 51 | ob_g=0.300 |
| 52 | ob_b=0.000 |
| 53 | ob_a=1.000 |
| 54 | ib_size=0.000 |
| 55 | ib_r=0.000 |
| 56 | ib_g=1.000 |
| 57 | ib_b=0.000 |
| 58 | ib_a=1.000 |
| 59 | nMotionVectorsX=64.000 |
| 60 | nMotionVectorsY=48.000 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.000 |
| 63 | mv_l=1.850 |
| 64 | mv_r=0.500 |
| 65 | mv_g=0.500 |
| 66 | mv_b=0.500 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=1.000 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.000 |
| 75 | wavecode_0_enabled=0 |
| 76 | wavecode_0_samples=75 |
| 77 | wavecode_0_sep=20 |
| 78 | wavecode_0_bSpectrum=0 |
| 79 | wavecode_0_bUseDots=1 |
| 80 | wavecode_0_bDrawThick=0 |
| 81 | wavecode_0_bAdditive=1 |
| 82 | wavecode_0_scaling=7.85800 |
| 83 | wavecode_0_smoothing=0.10000 |
| 84 | wavecode_0_r=1.000 |
| 85 | wavecode_0_g=0.000 |
| 86 | wavecode_0_b=0.000 |
| 87 | wavecode_0_a=0.200 |
| 88 | wavecode_1_enabled=0 |
| 89 | wavecode_1_samples=512 |
| 90 | wavecode_1_sep=0 |
| 91 | wavecode_1_bSpectrum=0 |
| 92 | wavecode_1_bUseDots=1 |
| 93 | wavecode_1_bDrawThick=1 |
| 94 | wavecode_1_bAdditive=0 |
| 95 | wavecode_1_scaling=0.89152 |
| 96 | wavecode_1_smoothing=0.82000 |
| 97 | wavecode_1_r=1.000 |
| 98 | wavecode_1_g=1.000 |
| 99 | wavecode_1_b=1.000 |
| 100 | wavecode_1_a=0.100 |
| 101 | wavecode_2_enabled=0 |
| 102 | wavecode_2_samples=512 |
| 103 | wavecode_2_sep=0 |
| 104 | wavecode_2_bSpectrum=0 |
| 105 | wavecode_2_bUseDots=0 |
| 106 | wavecode_2_bDrawThick=1 |
| 107 | wavecode_2_bAdditive=0 |
| 108 | wavecode_2_scaling=0.89152 |
| 109 | wavecode_2_smoothing=0.82000 |
| 110 | wavecode_2_r=0.000 |
| 111 | wavecode_2_g=0.200 |
| 112 | wavecode_2_b=0.000 |
| 113 | wavecode_2_a=1.000 |
| 114 | wavecode_3_enabled=0 |
| 115 | wavecode_3_samples=512 |
| 116 | wavecode_3_sep=0 |
| 117 | wavecode_3_bSpectrum=1 |
| 118 | wavecode_3_bUseDots=1 |
| 119 | wavecode_3_bDrawThick=0 |
| 120 | wavecode_3_bAdditive=0 |
| 121 | wavecode_3_scaling=1.00000 |
| 122 | wavecode_3_smoothing=0.50000 |
| 123 | wavecode_3_r=1.000 |
| 124 | wavecode_3_g=1.000 |
| 125 | wavecode_3_b=1.000 |
| 126 | wavecode_3_a=1.000 |
| 127 | shapecode_0_enabled=1 |
| 128 | shapecode_0_sides=33 |
| 129 | shapecode_0_additive=1 |
| 130 | shapecode_0_thickOutline=0 |
| 131 | shapecode_0_textured=0 |
| 132 | shapecode_0_num_inst=81 |
| 133 | shapecode_0_x=0.500 |
| 134 | shapecode_0_y=0.500 |
| 135 | shapecode_0_rad=0.04896 |
| 136 | shapecode_0_ang=0.00000 |
| 137 | shapecode_0_tex_ang=1.00531 |
| 138 | shapecode_0_tex_zoom=1.53117 |
| 139 | shapecode_0_r=1.000 |
| 140 | shapecode_0_g=1.000 |
| 141 | shapecode_0_b=1.000 |
| 142 | shapecode_0_a=0.000 |
| 143 | shapecode_0_r2=0.000 |
| 144 | shapecode_0_g2=0.000 |
| 145 | shapecode_0_b2=0.000 |
| 146 | shapecode_0_a2=0.000 |
| 147 | shapecode_0_border_r=1.000 |
| 148 | shapecode_0_border_g=1.000 |
| 149 | shapecode_0_border_b=0.000 |
| 150 | shapecode_0_border_a=0.000 |
| 151 | shape_0_per_frame1= |
| 152 | shape_0_per_frame2=trel = time/4; |
| 153 | shape_0_per_frame3=k1 = instance/num_inst; |
| 154 | shape_0_per_frame4=k2 = k1 + trel - int(k1+trel); |
| 155 | shape_0_per_frame5= |
| 156 | shape_0_per_frame6=y0 = k2+.01 ; |
| 157 | shape_0_per_frame7= |
| 158 | shape_0_per_frame8=xwidth = .1*(cos(6*k1)+3); //breite |
| 159 | shape_0_per_frame9=xofs = .1*cos(k2*6+trel)*y0; |
| 160 | shape_0_per_frame10=x = .5 + .4*xwidth*(.2+y0)*sin(k1*1383*xwidth) + xofs; |
| 161 | shape_0_per_frame11=//xwidth in der letzten Klammer : Test |
| 162 | shape_0_per_frame12= |
| 163 | shape_0_per_frame13=y = y0; |
| 164 | shape_0_per_frame14= |
| 165 | shape_0_per_frame15=bright = 1-sqr(y0); |
| 166 | shape_0_per_frame16=a = max(bright,0)*.4; a2 = 0; |
| 167 | shape_0_per_frame17=rad = .4*y0+.1 - .0*sin(k1*954); |
| 168 | shape_0_per_frame18= |
| 169 | shape_0_per_frame19=r = .0; g = 0; b = .0; |
| 170 | shape_0_per_frame20=r2 = 0; g2 = 0; b2= .3; //## rot mit ampl. mod ! |
| 171 | shape_0_per_frame21=additive = 1; ///sonst andere farben im warp-s gestoert |
| 172 | shapecode_1_enabled=0 |
| 173 | shapecode_1_sides=14 |
| 174 | shapecode_1_additive=1 |
| 175 | shapecode_1_thickOutline=1 |
| 176 | shapecode_1_textured=0 |
| 177 | shapecode_1_num_inst=21 |
| 178 | shapecode_1_x=0.500 |
| 179 | shapecode_1_y=0.500 |
| 180 | shapecode_1_rad=0.16056 |
| 181 | shapecode_1_ang=0.00000 |
| 182 | shapecode_1_tex_ang=0.00000 |
| 183 | shapecode_1_tex_zoom=0.93550 |
| 184 | shapecode_1_r=0.000 |
| 185 | shapecode_1_g=1.000 |
| 186 | shapecode_1_b=0.000 |
| 187 | shapecode_1_a=1.000 |
| 188 | shapecode_1_r2=0.000 |
| 189 | shapecode_1_g2=0.000 |
| 190 | shapecode_1_b2=0.000 |
| 191 | shapecode_1_a2=1.000 |
| 192 | shapecode_1_border_r=1.000 |
| 193 | shapecode_1_border_g=1.000 |
| 194 | shapecode_1_border_b=0.000 |
| 195 | shapecode_1_border_a=0.000 |
| 196 | shape_1_per_frame1=x = instance/num_inst; |
| 197 | shape_1_per_frame2=y = .4; |
| 198 | shape_1_per_frame3=a = .3; |
| 199 | shape_1_per_frame4=a2 = 0; |
| 200 | shapecode_2_enabled=0 |
| 201 | shapecode_2_sides=13 |
| 202 | shapecode_2_additive=1 |
| 203 | shapecode_2_thickOutline=0 |
| 204 | shapecode_2_textured=0 |
| 205 | shapecode_2_num_inst=212 |
| 206 | shapecode_2_x=0.650 |
| 207 | shapecode_2_y=0.380 |
| 208 | shapecode_2_rad=1.26467 |
| 209 | shapecode_2_ang=0.00000 |
| 210 | shapecode_2_tex_ang=0.00000 |
| 211 | shapecode_2_tex_zoom=0.73678 |
| 212 | shapecode_2_r=1.000 |
| 213 | shapecode_2_g=1.000 |
| 214 | shapecode_2_b=0.000 |
| 215 | shapecode_2_a=0.300 |
| 216 | shapecode_2_r2=1.000 |
| 217 | shapecode_2_g2=0.000 |
| 218 | shapecode_2_b2=0.000 |
| 219 | shapecode_2_a2=0.000 |
| 220 | shapecode_2_border_r=0.500 |
| 221 | shapecode_2_border_g=0.500 |
| 222 | shapecode_2_border_b=0.000 |
| 223 | shapecode_2_border_a=0.000 |
| 224 | shape_2_per_frame1=//q25 = time/4; |
| 225 | shape_2_per_frame2=//trel = 2* (q25/2-int(q25/2)); |
| 226 | shape_2_per_frame3=trel = q25; |
| 227 | shape_2_per_frame4=copies = 1; |
| 228 | shape_2_per_frame5=copy = (instance%copies)/copies; |
| 229 | shape_2_per_frame6=k1 = int(instance/copies)*copies/num_inst; |
| 230 | shape_2_per_frame7=k2 = k1 + .5; |
| 231 | shape_2_per_frame8=trel = trel ; |
| 232 | shape_2_per_frame9=t0 = .5; //do not change |
| 233 | shape_2_per_frame10= |
| 234 | shape_2_per_frame11=phase = above(trel,t0); |
| 235 | shape_2_per_frame12=mov1 = bnot(phase)* (t0-trel + .01*k1); |
| 236 | shape_2_per_frame13=mov2 = phase * (trel-t0); //#### |
| 237 | shape_2_per_frame14=//mov2 = pow(mov2,.8); |
| 238 | shape_2_per_frame15=stray = 1.2-phase; |
| 239 | shape_2_per_frame16= |
| 240 | shape_2_per_frame17=Tht = 3.14*sin(1234.2*k1+time*bnot(phase)) * stray ; |
| 241 | shape_2_per_frame18=Phi = 3245.1*k1; |
| 242 | shape_2_per_frame19= |
| 243 | shape_2_per_frame20=size0 = .02; |
| 244 | shape_2_per_frame21=ox = mov1*q27 + sin(Tht)*cos(phi)* (size0+mov2*(2+k1)); |
| 245 | shape_2_per_frame22=oy = mov1*12 + cos(Tht)* (size0+4*mov2*k2)*(1-mov2*k2)/2; |
| 246 | shape_2_per_frame23=oz = mov1*8 + sin(Tht)*sin(phi)* (size0+mov2*2*(2+k1)); |
| 247 | shape_2_per_frame24= |
| 248 | shape_2_per_frame25=z0 = 1; |
| 249 | shape_2_per_frame26=rad = .03 / (oz+z0)/(1+trel*rand(100)/50); |
| 250 | shape_2_per_frame27= |
| 251 | shape_2_per_frame28=x = .5 + ox/(oz+z0); |
| 252 | shape_2_per_frame29=y = q29+.2+ oy/(oz+z0); |
| 253 | shape_2_per_frame30= |
| 254 | shape_2_per_frame31=a = .1*bnot(phase)+phase*max(0,1-mov2*0)*above(oz+z0,0)*.8; |
| 255 | shapecode_3_enabled=0 |
| 256 | shapecode_3_sides=14 |
| 257 | shapecode_3_additive=1 |
| 258 | shapecode_3_thickOutline=1 |
| 259 | shapecode_3_textured=1 |
| 260 | shapecode_3_num_inst=31 |
| 261 | shapecode_3_x=0.750 |
| 262 | shapecode_3_y=0.600 |
| 263 | shapecode_3_rad=0.01000 |
| 264 | shapecode_3_ang=0.00000 |
| 265 | shapecode_3_tex_ang=0.00000 |
| 266 | shapecode_3_tex_zoom=0.33570 |
| 267 | shapecode_3_r=1.000 |
| 268 | shapecode_3_g=1.000 |
| 269 | shapecode_3_b=0.000 |
| 270 | shapecode_3_a=0.500 |
| 271 | shapecode_3_r2=1.000 |
| 272 | shapecode_3_g2=0.000 |
| 273 | shapecode_3_b2=0.000 |
| 274 | shapecode_3_a2=0.000 |
| 275 | shapecode_3_border_r=0.200 |
| 276 | shapecode_3_border_g=0.700 |
| 277 | shapecode_3_border_b=0.500 |
| 278 | shapecode_3_border_a=0.000 |
| 279 | per_frame_init_1=q1 = 0; q2 = 0; q3 = 0; q4 = 0; q5 = 0; q6 = 0; q7 = 0; q8 = 0; q9 = 0; q10 = 0; |
| 280 | per_frame_init_2=q11 = 0; q12 = 0; q13 = 0; q14 = 0; q15 = 0; q16 = 0; q17 = 0; q18 = 0; q19 = 0; q20 = 0; |
| 281 | per_frame_init_3=q21 = 0; q22 = 0; q23 = 0; q24 = 0; q25 = 0; q26 = 0; q27 = 0; q28 = 0; q29 = 0; q10 = 3; |
| 282 | per_frame_init_4=q31 = 0; q32 = 0; |
| 283 | per_frame_init_5= |
| 284 | per_frame_init_6=dir = 0; |
| 285 | per_frame_init_7=rvol = 1; |
| 286 | per_frame_init_8=n = 0; |
| 287 | per_frame_init_9=loop (10000, |
| 288 | per_frame_init_10= gmegabuf(n) = 0; |
| 289 | per_frame_init_11= megabuf(n) = 0; |
| 290 | per_frame_init_12= n = n+1; |
| 291 | per_frame_init_13=); |
| 292 | per_frame_init_14= |
| 293 | per_frame_1=dec_m = pow (0.8, 30/fps); dec_s = pow (0.94, 30/fps); |
| 294 | per_frame_2= |
| 295 | per_frame_3= |
| 296 | per_frame_4=beat = bass+mid+treb; |
| 297 | per_frame_5=avg = avg*dec_s + beat*(1-dec_s); |
| 298 | per_frame_6=is_beat = above(beat, peak*8+1*avg) * above (time, t0+.2); |
| 299 | per_frame_7=t0 = is_beat*time + (1-is_beat)*t0; |
| 300 | per_frame_8=peak = is_beat * beat + (1-is_beat)*peak*dec_m; |
| 301 | per_frame_9=index = (index + is_beat) %16; |
| 302 | per_frame_10=index2 = (index2 + is_beat*bnot(index))%8; |
| 303 | per_frame_11= |
| 304 | per_frame_12=q20 = avg; |
| 305 | per_frame_13=q22 = max(0,peak-.0)+.01; |
| 306 | per_frame_14=q24 = is_beat; |
| 307 | per_frame_15=q27 = index +1; |
| 308 | per_frame_16=q28 = index2; |
| 309 | per_frame_17= |
| 310 | per_frame_18=p1 = dec_m * p1 + (1-dec_m) * index; |
| 311 | per_frame_19=p2 = dec_m * p2 + (1-dec_m) * p1; |
| 312 | per_frame_20=p1 = index; |
| 313 | per_frame_21=rot1 = rot1 + sin(p1*2)/fps * avg/5; |
| 314 | per_frame_22=rot2 = rot2 + cos(p1*2/3)/fps*avg/5; |
| 315 | per_frame_23=q1 = rot1; |
| 316 | per_frame_24=q2 = rot2; |
| 317 | per_frame_25= |
| 318 | per_frame_26=pulse = pulse + (bass>.8)/fps*(bass-.8)*16; |
| 319 | per_frame_27=q8 = int(pulse*16)%16; |
| 320 | per_frame_28=q9 = cos(q8)*3; |
| 321 | per_frame_29=q10 = sin(q8)*3; |
| 322 | per_frame_30= |
| 323 | per_frame_31=trig = is_beat * bnot(index%6); |
| 324 | per_frame_32=speed = .35 *pos_z*2 ; |
| 325 | per_frame_33= |
| 326 | per_frame_34=dir = if (trig, dir + int(rand(3)-1.5)*3.1416/2, dir); |
| 327 | per_frame_35=dir_ = dec_m*dir_ + (1-dec_m)*dir; |
| 328 | per_frame_36=dir__ = dec_m*dir__ + (1-dec_m)*dir_; |
| 329 | per_frame_37=xpos = xpos + cos(dir_)/fps*speed +q24; |
| 330 | per_frame_38=ypos = ypos + sin(dir_)/fps*speed +q24; |
| 331 | per_frame_39=q5 = xpos; |
| 332 | per_frame_40=q6 = ypos; |
| 333 | per_frame_41= |
| 334 | per_frame_42=proxy = max(min(sin((q28%2)*q27+(xpos+ypos)),.5),-.5); |
| 335 | per_frame_43= |
| 336 | per_frame_44=xang =0*cos(dir); yang = 0*sin(dir); |
| 337 | per_frame_45=zang = dir__; ; |
| 338 | per_frame_46= |
| 339 | per_frame_47=pos_z = .5 + proxy/2; |
| 340 | per_frame_48=q29 = .02/pos_z; |
| 341 | per_frame_49= |
| 342 | per_frame_50=ox = 0; oy = 0; oz = pos_z; |
| 343 | per_frame_51=mx = ox*cos(zang) - oy*sin(zang); |
| 344 | per_frame_52=my = ox*sin(zang) + oy*cos(zang); |
| 345 | per_frame_53=ox = mx;oy = my; |
| 346 | per_frame_54=mx = ox*cos(yang) + oz*sin(yang); |
| 347 | per_frame_55=mz = - ox*sin(yang) + oz*cos(yang); |
| 348 | per_frame_56=ox = mx;oz = mz; |
| 349 | per_frame_57=my = oy*cos(xang) - oz*sin(xang); |
| 350 | per_frame_58=mz = oy*sin(xang) + oz*cos(xang); |
| 351 | per_frame_59=oy = my;oz = mz; |
| 352 | per_frame_60=q11=ox; q12 = oy; q13 = oz; //Position |
| 353 | per_frame_61= |
| 354 | per_frame_62=//Vektor x nach rechts |
| 355 | per_frame_63=ox = 1; oy = 0; oz = 0; |
| 356 | per_frame_64=mx = ox*cos(zang) - oy*sin(zang); |
| 357 | per_frame_65=my = ox*sin(zang) + oy*cos(zang); |
| 358 | per_frame_66=ox = mx;oy = my; |
| 359 | per_frame_67=mx = ox*cos(yang) + oz*sin(yang); |
| 360 | per_frame_68=mz = - ox*sin(yang) + oz*cos(yang); |
| 361 | per_frame_69=ox = mx;oz = mz; |
| 362 | per_frame_70=my = oy*cos(xang) - oz*sin(xang); |
| 363 | per_frame_71=mz = oy*sin(xang) + oz*cos(xang); |
| 364 | per_frame_72=oy = my;oz = mz; |
| 365 | per_frame_73=q14=ox; q15 = oy; q16 = oz; |
| 366 | per_frame_74= |
| 367 | per_frame_75= |
| 368 | per_frame_76=//Vektor z nach hinten |
| 369 | per_frame_77=ox = 0; oy = 0; oz = 1;; |
| 370 | per_frame_78= |
| 371 | per_frame_79=mx = ox*cos(zang) - oy*sin(zang); |
| 372 | per_frame_80=my = ox*sin(zang) + oy*cos(zang); |
| 373 | per_frame_81=ox = mx;oy = my; |
| 374 | per_frame_82=mx = ox*cos(yang) + oz*sin(yang); |
| 375 | per_frame_83=mz = - ox*sin(yang) + oz*cos(yang); |
| 376 | per_frame_84=ox = mx;oz = mz; |
| 377 | per_frame_85=my = oy*cos(xang) - oz*sin(xang); |
| 378 | per_frame_86=mz = oy*sin(xang) + oz*cos(xang); |
| 379 | per_frame_87=oy = my; |
| 380 | per_frame_88=oz = mz; |
| 381 | per_frame_89=q17=ox; q18 = oy; q19 = oz; |
| 382 | per_frame_90= |
| 383 | per_frame_91= |
| 384 | per_pixel_1=dx = .02; |
| 385 | warp_1=`sampler sampler_pw_noise_lq; |
| 386 | warp_2=`sampler sampler_pw_noise_hq; |
| 387 | warp_3=`static const float3 size1 = float3(.1,.2,.25); |
| 388 | warp_4=`static const float3 posx1 = float3(.1,.275,.88)+.4; |
| 389 | warp_5=`static const float3 posy1 = float3(.064,.3,.5); |
| 390 | warp_6=` |
| 391 | warp_7=`static const float3 size2 = float3(.1,.1,.2); |
| 392 | warp_8=`static const float3 posx2 = float3(.1,-.125,.08); |
| 393 | warp_9=`static const float3 posy2 = float3(.064,.4,.6); |
| 394 | warp_10=`float2 uv1, rs0, rs, uv2, uv3, dz, hor, ver; |
| 395 | warp_11=`float noise, z, dist, cog1, rod1, cog2, trel; |
| 396 | warp_12=` |
| 397 | warp_13=`float cog (float3 uvx, float3 uvy, float3 size, float3 rot) {float3 rad1, ang1, wheel; float res; |
| 398 | warp_14=` uvx = frac(1*uvx)-.5; uvy = frac(1*uvy)-.5; |
| 399 | warp_15=` rad1 = sqrt(uvx*uvx+uvy*uvy); ang1 = atan2(uvx,uvy)+rot/size; |
| 400 | warp_16=` wheel = saturate(100*(size-rad1) - 1.5*clamp(sin(180*ang1*size),-.7,.7)); |
| 401 | warp_17=` wheel -= .25*saturate(sin(rad1*120)); |
| 402 | warp_18=` wheel -= saturate(4*sin(rad1*32+3.5)-2) * saturate(4*sin(8*ang1));; |
| 403 | warp_19=` wheel = saturate(wheel)*float3(0,1,1); //## |
| 404 | warp_20=` |
| 405 | warp_21=` res = wheel.r + saturate(1-0*wheel.r)*wheel.g; |
| 406 | warp_22=` res += saturate(1-0*res)*wheel.b; |
| 407 | warp_23=` return res;} |
| 408 | warp_24=` |
| 409 | warp_25=` |
| 410 | warp_26=`float rod (float2 uvi) {float3 rad1 ; float res; |
| 411 | warp_27=` uvi = frac(uvi)-.5; |
| 412 | warp_28=` rad1 = saturate (2-64*abs(uvi.x)+exp(-uvi.y*uvi.y*128)); |
| 413 | warp_29=` rad1 -= .2*(uvi.x*uvi.x+uvi.y*uvi.y <= .0004); |
| 414 | warp_30=` rad1 -= .5*saturate(1.4-uvi.x*uvi.x*2048); |
| 415 | warp_31=` return saturate(rad1);} |
| 416 | warp_32=` |
| 417 | warp_33=` |
| 418 | warp_34=`shader_body { |
| 419 | warp_35=`uv1 = (uv-.5); |
| 420 | warp_36=` |
| 421 | warp_37=`//Zahnraeder |
| 422 | warp_38=`trel = q1; |
| 423 | warp_39=`cog1 = cog (uv1.x+posx1, uv1.y+posy1, size1, float3 (1,-1,1)*trel + float3(0.012,-0.029,0.0)); |
| 424 | warp_40=` |
| 425 | warp_41=`rod1 = rod (uv1 + float2(posx1[2],posy1[2]) + size1[2]*.6*float2(cos(trel*4), sin(trel*4))); |
| 426 | warp_42=` |
| 427 | warp_43=`trel = q2; |
| 428 | warp_44=`cog2 = cog (uv1.x+posx2, uv1.y+posy2, size2, float3 (1,-1,1)*trel + float3(0.012,-0.029,0.0)); |
| 429 | warp_45=` |
| 430 | warp_46=`ret.g = cog1 + .8*saturate(1-8*cog1)*cog2; |
| 431 | warp_47=`ret.g = rod1 + .8*saturate(1-8*rod1)*ret.g; |
| 432 | warp_48=`//ret.g = cog2; |
| 433 | warp_49=`//ret.g = cog1; |
| 434 | warp_50=` |
| 435 | warp_51=` |
| 436 | warp_52=`float copy = tex2D (sampler_fw_main, (uv_orig-.5).yx*2+.25+.0*float2(q5,q6)).g; |
| 437 | warp_53=`ret.g = max(ret.g,copy*.4); |
| 438 | warp_54=` |
| 439 | warp_55=` |
| 440 | warp_56=`ret.b = GetPixel(uv).b*.5; |
| 441 | warp_57=` |
| 442 | warp_58=` |
| 443 | warp_59=`} |
| 444 | comp_1=`sampler sampler_pw_noise_lq; |
| 445 | comp_2=`static const float quality =3, depth = q29; |
| 446 | comp_3=`float3 screen3, sun, cog; |
| 447 | comp_4=`float2 dz, uv0, uv1, uv2, uv4, rsk, dz1,tmp2, Kugel1, rsl; |
| 448 | comp_5=`float m,n,noise,mask, smoke, mask1, gmask,dx,dy,rad1, lprof,dist,flash; |
| 449 | comp_6=`float mask2; |
| 450 | comp_7=`static float2 hor = float2 (texsize.z,0)*2; |
| 451 | comp_8=`static float2 ver = float2 (0,texsize.w)*2; |
| 452 | comp_9=`static float2 mov = float2 (q5,q6); |
| 453 | comp_10=` |
| 454 | comp_11=`static float3 t = float3(q14,q15,q16); |
| 455 | comp_12=`static float3 s = float3(q17,q18,q19); |
| 456 | comp_13=`static float3 ts = -cross(s,t); |
| 457 | comp_14=`static float3 pos = float3 (q11,q12,q13); |
| 458 | comp_15=`float3 lavcol (float t) {return saturate(float3(t,pow(t,2.1),pow(t,6)));} |
| 459 | comp_16=` |
| 460 | comp_17=`float2 project (float dist) { float z; |
| 461 | comp_18=` z = 4*dist/mul(cross(ts,-t),screen3); |
| 462 | comp_19=` gmask = (z >= -4) * (z <= 4); |
| 463 | comp_20=` return float2(mul(float2x3(ts,t),cross(pos,screen3))*z*gmask);} |
| 464 | comp_21=` |
| 465 | comp_22=`shader_body {uv0 = uv; |
| 466 | comp_23=`screen3 = float3 ((uv-.5)*aspect.xy,1);//wirkt wie zoom / Tele ### |
| 467 | comp_24=` |
| 468 | comp_25=`//********* SMOKE |
| 469 | comp_26=`dist = .25; |
| 470 | comp_27=`rsl = project (dist)+ mov*.5 ; |
| 471 | comp_28=`smoke = GetPixel(frac(rsl)).b ; //mittelwert null !# |
| 472 | comp_29=` |
| 473 | comp_30=`//********* COGWHEELS |
| 474 | comp_31=`dist = .5; |
| 475 | comp_32=`for (m=1; m <= quality; m++) { |
| 476 | comp_33=` rsl = project (dist)+ mov ; |
| 477 | comp_34=` lprof = GetPixel(frac(rsl)).g-.5 ; //mittelwert null !# |
| 478 | comp_35=` dist -= lprof/quality*depth; |
| 479 | comp_36=`} |
| 480 | comp_37=`cog = lprof+.5; |
| 481 | comp_38=` |
| 482 | comp_39=`mask = saturate(4*cog-smoke*2);// * (rsl.y >= -1) : Oberkante; |
| 483 | comp_40=`mask1 = saturate(8*cog); |
| 484 | comp_41=`dz.x = GetPixel (rsl.xy-hor).g - GetPixel (rsl.xy+hor).g; |
| 485 | comp_42=`dz.y = GetPixel (rsl.xy-ver).g - GetPixel (rsl.xy+ver).g; |
| 486 | comp_43=`sun = saturate(.1/length(sin(rsl*4)+dz*16)) ; |
| 487 | comp_44=`sun *= .5+.5*tex2D (sampler_noise_hq,sun/4+mov/4); |
| 488 | comp_45=`cog = 2*sun*(1+1*cog); |
| 489 | comp_46=`ret = lerp(smoke/2,cog,mask) ; |
| 490 | comp_47=` |
| 491 | comp_48=`rsl = project(.5)+float2(q9,q10); |
| 492 | comp_49=`flash = saturate(1+(q8%2)-mask1)*bass/2/sqrt(length(sin(time+q8+4*atan2(rsl.y,rsl.x)))); |
| 493 | comp_50=`ret += (.1+smoke)*(q28%3 <= 1)*flash*float3(0,.5,1); |
| 494 | comp_51=`//ret = GetPixel(uv0*aspect.xy+.0); |
| 495 | comp_52=`} |
| 496 | comp_53=` |
| 497 | comp_54=`written by martin |
| 498 | comp_55=`END |